<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
import useOss from '@/hooks/useOss'
import useApp from '@/hooks/useApp'

const { login } = useOss()
const { initData } = useApp()
onLaunch(() => {
  console.log('App Launch')
  login().then(() => initData())
})
onShow(() => {
  console.log('App Show')
})
onHide(() => {
  console.log('App Hide')
})
</script>

<style lang="scss">
// 字体图标
@import '@/styles/fonts.scss';

</style>
